<div class="aw-container-wrap">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <div class="aw-global-tips">
                </div>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="row">
            <div class="aw-content-wrap clearfix">
                <div class="col-sm-12 col-md-9 aw-main-content">
                    <div class="aw-mod aw-topic-detail-title">
                        <div class="mod-body">
                            <img src="http://nuke.cgspread.com/static/common/topic-mid-img.png" alt="创建或搜索添加新话题..."
                            />
                          
                            <div class="aw-topic-operate text-color-999">
                                <a href="javascript:;" onclick="AWS.User.follow($(this), 'topic', 15);"
                                class="follow btn btn-normal btn-success">
                                    <span>
                                        关注
                                    </span>
                                    <em>
                                        |
                                    </em>
                                    <b>
                                        7
                                    </b>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="aw-mod aw-topic-list-mod">
                        <div class="mod-head">
                            <div class="tabbable">
                                <!-- tab 切换 -->
                                <ul class="nav nav-tabs aw-nav-tabs hidden-xs">
                                    <li class="active">
                                        <a href="#all" data-toggle="tab">
                                            全部内容
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#best_answers" data-toggle="tab">
                                            精华
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#recommend" data-toggle="tab">
                                            推荐
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#favorite" id="i_favorite" data-toggle="tab" style="display:none">
                                            我的收藏
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#about" id="i_about" data-toggle="tab">
                                            关于话题
                                        </a>
                                    </li>
                                    <div class="aw-search-bar pull-right hidden-xs">
                                        <i class="icon icon-search">
                                        </i>
                                        <input type="text" id="question-input" class="search-query form-control"
                                        placeholder="搜索...">
                                        <div class="aw-dropdown">
                                            <p class="title">
                                                没有找到相关结果
                                            </p>
                                            <ul class="aw-dropdown-list">
                                            </ul>
                                        </div>
                                    </div>
                                </ul>
                                <!-- end tab 切换 -->
                            </div>
                        </div>
                        <div class="mod-body">
                            <!-- tab 切换内容 -->
                            <div class="tab-content">
                                <div class="tab-pane active" id="all">
                                    <!-- 推荐问题 -->
                                    <!-- end 推荐问题 -->
                                    <div class="aw-mod">
                                        <div class="mod-body">
                                            <div class="aw-common-list" id="c_all_list">
                                                
                                                <foreach name="result" item="value" >
                                                    <div class="aw-item " data-topic-id="12,">
                                                        <a class="aw-user-name hidden-xs" data-id="{$value['uid']}" href="__ROOT__/index.php/Home/People/index?id={$value['uid']}"
                                                        rel="nofollow">
                                                            <img src="__ROOT__/{$value['img']}" alt="">
                                                            <i class="icon icon-v i-ve">
                                                            </i>
                                                        </a>
                                                        <div class="aw-question-content">
                                                            <h4>
                                                                <a href="__ROOT__/index.php/Home/People/article_show?id={$value['id']}">
                                                                    {$value['title']}
                                                                </a>
                                                            </h4>
                                                            <div class="pull-right hidden-xs contribute">
                                                                <span class="pull-right text-color-999">
                                                                    贡献
                                                                </span>

                                                                <a class="aw-user-name" data-id="3" href="http://nuke.cgspread.com/people/%E5%AD%B8%E7%84%A1%E6%AD%A2%E5%A2%83"
                                                                rel="nofollow">
                                                                <if condition="$value['answer_img'] eq ''">
                                                                <else/>
                                                                    <img src="__ROOT__/{$value['answer_img']}"
                                                                    alt="">
                                                                </if>
                                                                </a>
                                                                <a class="aw-user-name" data-id="127" href="http://nuke.cgspread.com/people/shenming0"
                                                                rel="nofollow">
                                                                    <img src="__PUBLIC__/Main/Img/avatar-min-img.png" alt="">
                                                                </a>
                                                            </div>
                                                            <p>
                                                                <a class="aw-question-tags" href="__ROOT__/index.php/Home/Topic?id={$value['tid']}">
                                                                    {$value['tname']}
                                                                </a>
                                                                •
                                                                <if condition="$value['answer_user'] eq ''">
                                                                <span class="aw-user-name">还没有人进行回复</span>
                                                                <else />
                                                                <a href="__ROOT__/index.php/Home/People/index?id={$value['answer_uid']}" class="aw-user-name"
                                                                data-id="{$value['answer_uid']}">
                                                                    {$value['answer_user']}
                                                                    回复了问题
                                                                </a>

                                                                </if>
                                                                <span class="text-color-999">
                                                                     •  {$value['focus']}人关注 • {$value['answer']} 个回复 •  {$value['views']}次浏览 • {$value['time']}
                                                                </span>
                                                                <span class="text-color-999 related-topic hide">
                                                                    • 来自相关话题
                                                                </span>
                                                            </p>
                                                        </div>
                                                    </div>
                                                    
                                                 </foreach>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="tab-pane" id="best_answers">
                                    <div class="aw-feed-list" id="c_best_question_list">
                                        <div class="mod-body">
                                        </div>
                                        <div class="mod-footer">
                                            <a class="aw-load-more-content" id="bp_best_question_more" auto-load="false">
                                                <span>
                                                    更多...
                                                </span>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                                <div class="tab-pane" id="recommend">
                                    <div class="aw-mod">
                                        <div class="mod-body">
                                            <div class="aw-common-list" id="c_recommend_list">
                                            </div>
                                        </div>
                                        <div class="mod-footer">
                                            <a class="aw-load-more-content" id="c_recommend_more" auto-load="false">
                                                <span>
                                                    更多...
                                                </span>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                                <div class="tab-pane" id="questions">
                                    <div class="aw-mod">
                                        <div class="mod-body">
                                            <div class="aw-common-list" id="c_question_list">
                                                <div class="aw-item active" data-topic-id="15,">
                                                    <a class="aw-user-name hidden-xs" data-id="22" href="http://nuke.cgspread.com/people/%E8%B7%91%E5%95%A5%E8%B7%91%E5%91%A2"
                                                    rel="nofollow">
                                                        <img src="http://nuke.cgspread.com/uploads/avatar/000/00/00/22_avatar_max.jpg"
                                                        alt="" />
                                                        <i class="icon icon-v">
                                                        </i>
                                                    </a>
                                                    <div class="aw-question-content">
                                                        <h4>
                                                            <a href="http://nuke.cgspread.com/question/191">
                                                                Nuke安装不上的 （史上最全）
                                                            </a>
                                                        </h4>
                                                        <a href="http://nuke.cgspread.com/question/191#!answer_form" class="pull-right text-color-999">
                                                            回复
                                                        </a>
                                                        <p>
                                                            <a class="aw-question-tags" href="http://nuke.cgspread.com/explore/category-3">
                                                                NUKE插件
                                                            </a>
                                                            •
                                                            <a href="http://nuke.cgspread.com/people/%E8%B7%91%E5%95%A5%E8%B7%91%E5%91%A2"
                                                            class="aw-user-name">
                                                                跑啥跑呢
                                                            </a>
                                                            <span class="text-color-999">
                                                                发起了问题 • 1 人关注 • 0 个回复 • 2720 次浏览 • 2015-05-11 10:48
                                                            </span>
                                                            <span class="text-color-999 related-topic hide">
                                                                • 来自相关话题
                                                            </span>
                                                        </p>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="mod-footer">
                                            <a class="aw-load-more-content" id="c_question_more" auto-load="false">
                                                <span>
                                                    更多...
                                                </span>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                                <div class="tab-pane" id="articles">
                                    <!-- 动态首页&话题精华模块 -->
                                    <div class="aw-mod">
                                        <div class="mod-body">
                                            <div class="aw-common-list" id="c_articles_list">
                                            </div>
                                        </div>
                                        <div class="mod-footer">
                                            <a class="aw-load-more-content" id="bp_articles_more" auto-load="false">
                                                <span>
                                                    更多...
                                                </span>
                                            </a>
                                        </div>
                                    </div>
                                    <!-- end 动态首页&话题精华模块 -->
                                </div>
                                <div class="tab-pane" id="favorite">
                                    <!-- 动态首页&话题精华模块 -->
                                    <div class="aw-mod aw-feed-list" id="c_favorite_list">
                                    </div>
                                    <!-- end 动态首页&话题精华模块 -->
                                    <!-- 加载更多内容 -->
                                    <a class="aw-load-more-content" id="bp_favorite_more">
                                        <span>
                                            更多...
                                        </span>
                                    </a>
                                    <!-- end 加载更多内容 -->
                                </div>
                                <div class="tab-pane" id="about">
                                    <div class="aw-topic-detail-about text-color-666 markitup-box">
                                    </div>
                                </div>
                            </div>
                            <!-- end tab 切换内容 -->
                        </div>
                    </div>
                </div>
                <!-- 侧边栏 -->
                <div class="col-sm-12 col-md-3 aw-side-bar hidden-xs">
                    <!-- 话题描述 -->
                    <div class="aw-mod aw-text-align-justify">
                        <div class="mod-head">
                            <h3>
                                话题描述
                            </h3>
                        </div>
                        <div class="mod-body">
                        </div>
                    </div>
                    <!-- end 话题描述 -->
                    <div class="aw-mod topic-about">
                        <div class="mod-head">
                            <h3>
                                相关话题
                            </h3>
                        </div>
                        <div class="mod-body" data-type="topic">
                            <div class="aw-topic-bar" data-type="topic" data-id="15">
                                <div class="tag-bar clearfix">
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- 最佳回复者 -->
                    <!-- end 最佳回复者 -->
                    <!-- xx人关注该话题 -->
                    <div class="aw-mod topic-status">
                        <div class="mod-head">
                            <h3>
                                7 人关注该话题
                            </h3>
                        </div>
                        <div class="mod-body">
                            <div id="focus_users" class="aw-border-radius-5">
                            </div>
                        </div>
                    </div>
                    <!-- end xx人关注该话题 -->
                    <!-- 话题修改记录 -->
                    <div class="aw-mod topic-edit-notes">
                        <div class="mod-head">
                            <h3>
                                <i class="icon icon-down pull-right">
                                </i>
                                话题修改记录
                            </h3>
                        </div>
                        <div class="mod-body hide">
                            <ul>
                                <li onclick="AWS.dialog('topicEditHistory', decodeURIComponent('2015-05-11%3A%20%3Ca%20href%3D%22people%2F%25E8%25B7%2591%25E5%2595%25A5%25E8%25B7%2591%25E5%2591%25A2%22%3E%E8%B7%91%E5%95%A5%E8%B7%91%E5%91%A2%3C%2Fa%3E%20%E5%88%9B%E5%BB%BA%E4%BA%86%E8%AF%A5%E8%AF%9D%E9%A2%98%3C%2Fp%3E'));">
                                    <span class="pull-right text-color-999">
                                        2015-05-11
                                    </span>
                                    <a href="javascript:;" data-id="" class="aw-user-name">
                                        跑啥跑呢
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <!-- end 话题修改记录 -->
                </div>
                <!-- end 侧边栏 -->
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    var TOPIC_ID = '15';

    var CONTENTS_TOPIC_ID = '15';
    var CONTENTS_RELATED_TOPIC_IDS = '15';
    var CONTENTS_TOPIC_TITLE = '创建或搜索添加新话题...';
</script>
<script type="text/javascript" src="http://nuke.cgspread.com/static/js/app/topic.js">
</script>